package com.smartleanx.module.hrm.service.payrollapproverecord;

import com.smartleanx.framework.common.pojo.PageResult;
import com.smartleanx.framework.customfield.core.service.bo.inner.CustomFieldDataBaseBO;
import com.smartleanx.module.hrm.controller.admin.payrollapproverecord.vo.PayrollApproveRecordDetailPageReqVO;
import com.smartleanx.module.hrm.dal.dataobject.payrollapproverecord.PayrollApproveRecordDetailDO;
import com.smartleanx.module.hrm.service.payrollapproverecord.bo.PayrollApproveRecordDetailSaveBO;

import javax.validation.Valid;
import java.util.Collection;
import java.util.List;

/**
 * 薪资审批记录详情 Service 接口
 *
 * @author zhangchp
 */
public interface PayrollApproveRecordDetailService {

    /**
     * 创建薪资审批记录详情
     *
     * @param saveBOs 创建信息
     * @param fieldDataList 自定义字段数据
     * @return 编号
     */
    void createDetail(@Valid Collection<PayrollApproveRecordDetailSaveBO> saveBOs, Collection<CustomFieldDataBaseBO> fieldDataList);


    List<PayrollApproveRecordDetailDO> getDetailByPayrollApproveRecordId(Long payrollApproveRecordId);

    /**
     * 获得薪资审批记录详情分页
     *
     * @param pageReqVO 分页查询
     * @return 薪资审批记录详情分页
     */
    PageResult<PayrollApproveRecordDetailDO> getDetailPage(PayrollApproveRecordDetailPageReqVO pageReqVO);
}